import 'package:fish_redux/fish_redux.dart';
import '../../model/account_model.dart';

class GasNoSearchResultViewState
    implements Cloneable<GasNoSearchResultViewState> {
  List<AccountItemModel> items;
  bool isEmpty = false;

  @override
  GasNoSearchResultViewState clone() {
    return GasNoSearchResultViewState()
      ..items = items
      ..isEmpty = isEmpty;
  }
}

GasNoSearchResultViewState initState(Map<String, dynamic> args) {
  return GasNoSearchResultViewState()
    ..items = args['items'] ?? []
    ..isEmpty = args['isEmpty'] ?? false;
}
